﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpShare.Storage.Searching.Parameters {
    public class OrSearchParameter : BinarySearchParameter {
        public OrSearchParameter(SearchParameter left, SearchParameter right)
            : base(left, right) {

        }

        public override bool Matches(IStorageItem item) {
            return (this.Left.Matches(item) || this.Right.Matches(item));
        }
    }
}
